package cn.miju.database.mapper;

import cn.miju.database.entity.SysRole;
import cn.miju.database.entity.SysUserAuthRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <pre>
 * 用户角色授权Mapper
 * </pre>
 *
 * @author zhuming
 * @version 1.0.0
 * @since 2023-03-28 16:32
 */
public interface SysUserAuthRoleMapper extends BaseMapper<SysUserAuthRole> {
    /**
     * 获取用户角色列表
     * @param userId 用户ID
     */
    List<SysRole> getUserRoleList(@Param("userId") Long userId);
}
